import React from 'react';
import { Route, Switch, Router } from 'react-router-dom';
import history from '@/api/history';
import Routers from './routers';
const RouterPages = () => {
    return (
        <Router history={history}>
            <Switch>
                {Routers.map(props => (
                    <Route {...props} />
                ))}
            </Switch>
        </Router>
    );
};
export default RouterPages;
